package com.pt.pok.string.legacy;

import org.apache.commons.lang.StringUtils;

import static com.playtech.common.Constants.CHS;

/**
 * @author Roman.Ivanov@playtech.co,
 * @date 1/25/12
 *       <p/>
 *       Static util for UTF
 */
public class EncodingUtil {

    public static String[] splitUTF(String msg) {
        try {
            String command = UTFStringCommand.fromUTF8String(msg, CHS);
            return StringUtils.splitPreserveAllTokens(command, "" + CHS);
        } catch (Exception e) {
            System.out.println("20013 processCommand failed: " + e);
        }
        return null;
    }

}
